import * as logininforDao from '../dao/sys_logininfor.dao';

export const SysLogininforService = {
    getLogininforList: async (query: any, offset: number|string = 0, limit: number|string = 10) => {
        return await logininforDao.getLogininforList(offset, limit, query);
    },
    getLogininforById: async (info_id: number) => {
        return await logininforDao.getLogininforById(info_id);
    },
    createLogininfor: async (data: any) => {
        return await logininforDao.createLogininfor(data);
    },
    deleteLogininfor: async (info_id: number) => {
        return await logininforDao.deleteLogininfor(info_id);
    },
    cleanLogininfor: async () => {
        return await logininforDao.cleanLogininfor();
    }
}
